<?php echo $header; ?>
<div class="page">
	<div class="personal_info">
    	Welcome,<span id="userName"><?php echo $this->customer->getLastName() ?></span>
					<a href="index.php?route=account/logout">logout</a>
    </div>
	<div class="greenPanel">
		<table width="95%" cellpadding="0" cellspacing="0" align="center" style="margin:auto;">
			<tr>
				<td colspan="3" align="left" height="50px">
					<a href="javascript:void(0)" style="float:left;background:url(catalog/view/theme/default/images/agreeItem.png);padding:8px 70px 17px 62px;">Account</a>
				</td>
			</tr>
			<tr>
				<?php echo $left; ?>
				<td style="height:500px;" valign="top" class="ManageMain">
					<ul>
						<li>Account Information</li>
					</ul>
					<?php if ($products) { ?>
					<table width="100%" cellspacing="0" cellpadding="0" class="list">
						<tr>
							<th width="10%">Image</th>
							<th width="25%">Products Name</th>
							<th width="45%">Reviews</th>
							<th>Rating</th>
							<th> Time</th>
						</tr>
						<?php foreach ($products as $product) { ?>
						<tr>
							<td><a href="<?php echo $product['href'];?>"><img src="<?php echo $product['img'];?>"></a></td>
							<td class="textleft"><?php echo $product['name'];?><br></td>
							<td height="35" class="textleft"><?php echo $product['text'];?></td>
							<td><?php echo $product['rating'];?></td>
							<td height="35"><?php echo $product['date'];?></td>
						</tr>
						<?php }?>
					<?php }?>
					</table>
					<div class="pagination"><?php echo $pagination; ?></div>
				</td>
			</tr>
		</table>
	</div>
</div>
<?php echo $footer; ?> 